package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HyHousesMapper;
import com.ruoyi.system.domain.HyHouses;
import com.ruoyi.system.service.IHyHousesService;

/**
 * 租房Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-10
 */
@Service
public class HyHousesServiceImpl implements IHyHousesService 
{
    @Autowired
    private HyHousesMapper hyHousesMapper;

    /**
     * 查询租房
     * 
     * @param id 租房主键
     * @return 租房
     */
    @Override
    public HyHouses selectHyHousesById(Long id)
    {
        return hyHousesMapper.selectHyHousesById(id);
    }

    /**
     * 查询租房列表
     * 
     * @param hyHouses 租房
     * @return 租房
     */
    @Override
    public List<HyHouses> selectHyHousesList(HyHouses hyHouses)
    {
        return hyHousesMapper.selectHyHousesList(hyHouses);
    }

    /**
     * 新增租房
     * 
     * @param hyHouses 租房
     * @return 结果
     */
    @Override
    public int insertHyHouses(HyHouses hyHouses)
    {
        return hyHousesMapper.insertHyHouses(hyHouses);
    }

    /**
     * 修改租房
     * 
     * @param hyHouses 租房
     * @return 结果
     */
    @Override
    public int updateHyHouses(HyHouses hyHouses)
    {
        return hyHousesMapper.updateHyHouses(hyHouses);
    }

    /**
     * 批量删除租房
     * 
     * @param ids 需要删除的租房主键
     * @return 结果
     */
    @Override
    public int deleteHyHousesByIds(Long[] ids)
    {
        return hyHousesMapper.deleteHyHousesByIds(ids);
    }

    /**
     * 删除租房信息
     * 
     * @param id 租房主键
     * @return 结果
     */
    @Override
    public int deleteHyHousesById(Long id)
    {
        return hyHousesMapper.deleteHyHousesById(id);
    }
}
